import request from '@/utils/request'

// 查询特殊考勤天数列表
export function listSattendance(query) {
  return request({
    url: '/sl/sattendance/list',
    method: 'get',
    params: query
  })
}

// 查询特殊考勤天数详细
export function getSattendance(sattendanceId) {
  return request({
    url: '/sl/sattendance/' + sattendanceId,
    method: 'get'
  })
}

// 新增特殊考勤天数
export function addSattendance(data) {
  return request({
    url: '/sl/sattendance',
    method: 'post',
    data: data
  })
}

// 修改特殊考勤天数
export function updateSattendance(data) {
  return request({
    url: '/sl/sattendance',
    method: 'put',
    data: data
  })
}

// 删除特殊考勤天数
export function delSattendance(sattendanceId) {
  return request({
    url: '/sl/sattendance/' + sattendanceId,
    method: 'delete'
  })
}
